find max number in array javascript